package com.matrix.im.interfaces.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @author 有点甜
 * @since 2025/8/2
 */
@Data
public class SendMessageDTO {

    @NotNull(message = "接收者ID不能为空")
    private Long toUserId;

    @NotBlank(message = "客户端消息ID不能为空")
    private String clientMessageId;

    @NotNull(message = "消息体不能为空")
    private MessageBodyDTO body;

    @Data
    public static class MessageBodyDTO {
        @NotBlank(message = "消息类型不能为空")
        private String type;

        @NotBlank(message = "消息内容不能为空")
        private String content;
    }
}
